/**
 * 
 */
var ioc = {
        config : {
            type : "org.nutz.ioc.impl.PropertiesProxy",
            fields : {
                    paths : ["com/ur/config/db_conn_mysql.properties"]
            }
        },
        dataSource : {
            type :"org.apache.commons.dbcp.BasicDataSource",
            events : {
                    depose :"close"
            },
            fields : {
                    driverClassName : {java :"$config.get('db-driver')"},
                    url             : {java :"$config.get('db-url')"},
                    username        : {java :"$config.get('db-username')"},
                    password        : {java :"$config.get('db-password')"},
                    initialSize     : 10,
                    maxActive       : 100,
                    testOnReturn    : true,
                    validationQuery : "select 1"
            }
        },
        dao : {
        	type :'org.nutz.dao.impl.NutDao',
            args : [ {refer :"dataSource"}]
        }
};